<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<fieldset style="width:300px;height:250px;margin: 80px auto 0px">
    <legend>修改页面</legend>
    <form action="userAction_update.action">
        <br>
        <input type="hidden" name="id" value="${user.id}">
        用户名:<input type="text" name="username" required value="${user.username}"><br><br>
        密&nbsp;&nbsp;&nbsp;码:<input type="password" required name="password" value="${user.password}"><br><br>
        年&nbsp;&nbsp;&nbsp;龄:<input type="text" name="age" required value="${user.age}"><br><br>
        姓&nbsp;&nbsp;&nbsp;别:<input type="radio" name="sex" value="1" <c:if test="${user.sex==1}">checked</c:if>>男
        <input type="radio" name="sex" value="0" <c:if test="${user.sex==0}">checked</c:if>>女<br><br>
        <input type="submit" value="修改">
    </form>
</fieldset>
</body>
</html>
